package com.booby.algorithm.utils;

import java.util.Comparator;

/**
 * 功能描述: 实现整形逆序排列
 *
 * @author: lizt
 * @date: 2020/8/14 08:15
 **/

public class IntComparator implements Comparator<Integer> {

    @Override
    public int compare(Integer o1, Integer o2) {
        if(o1 < o2){
            return 1;
        }else if (o1 > o2){
            return -1;
        }else {
            return 0;
        }
    }
}
